@prefix: ~'.qun-choose-groups';
@side-padding: 12px;

@{prefix} {
  display: flex;
  height: 550px;
  overflow: hidden;
  width: 100%;
}

@{prefix}-groups-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 350px;
}
@{prefix}-filter-wrap {
  margin: 0 0 20px @side-padding;
}
@{prefix}-search:not(:last-child) {
  margin-bottom: 12px;
}
@{prefix}-choose-all {
  border-bottom: 1px solid #f0f0f0;
  padding: 0 0 8px @side-padding;
  user-select: none;
}
@{prefix}-choose-list-wrap {
  flex: 1;
}
@{prefix}-choose-item-wrap {
  overflow: hidden;

  & > .ant-checkbox-wrapper {
    align-items: center;
    display: flex;
    overflow: hidden;
    padding: 8px 8px 8px @side-padding;

    & > .ant-checkbox + span {
      overflow: hidden;
    }
  }
}

@{prefix}-choosed-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding: 0 30px;

  & > * {
    & > h2 {
      font-size: 14px;
      margin: 0 0 8px 0;
    }
  }
}

@{prefix}-choosed-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 25px;
  overflow: hidden;

  & > h2 {
    padding-top: 5px;
  }
}
@{prefix}-choosed-list {
  flex: 1;
  overflow-y: auto;
  position: relative;
}
@{prefix}-choosed-item {
  align-items: center;
  display: flex;
  padding: 7px 12px 7px 0;
  border-bottom: 1px solid #fff;
  border-top: 1px solid #fff;
  .qun-group-item {
    flex: 1;
  }
}
@{prefix}-choosed-item-remove {
  color: #ec5b56;
  cursor: pointer;
  font-size: 18px;
  margin-left: 12px;
  user-select: none;
}
@{prefix}-choosed-item-move {
  color: #777;
  cursor: move;
  font-size: 14px;
  margin-right: 4px;
  padding-left: 2px;
  padding-right: 8px;
}
@{prefix}-choosed-item.highlight {
  @bg: #fff1f0;
  @border: #ffa39e;

  background-color: @bg;
  &.above {
    border-bottom: 1px solid @bg;
    border-top: 1px solid @border;
  }
  &.below {
    border-bottom: 1px solid @border;
    border-top: 1px solid @bg;
  }
}
@{prefix}-choosed-item.dragging {
  background-color: #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  border-top: 1px solid #f5f5f5;
}
